/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase2203 - For5
 * <p>Powered by webrx On 2022-07-14 11:33:17
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For5 {
    public static void main(String[] args) {
        int len = 20;
        for (int i = 1; i < 20; i += 2) {
            System.out.println(" ".repeat(--len)+"*".repeat(i));
        }
        for (int i = 17; i >=1; i -= 2) {
            System.out.println(" ".repeat(++len)+"*".repeat(i));
        }
    }
}
